package com.leo.tool.rpc.rmi.server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import com.leo.tool.rpc.rmi.User;

/**
 * <li>必须继承{@link UnicastRemoteObject}接口</li><br/>
 * 
 * @author Leo
 * @date 2019/07/11
 */
public class UserImpl extends UnicastRemoteObject implements User {

    private static final long serialVersionUID = 1L;

    public UserImpl() throws RemoteException {
        super();
    }

    @Override
    public String say() {
        return "hello world!";
    }

}
